@extends('backend.layouts.app')

@section('breadcrumb')
    个人信息
@endsection
@section('content')
    <div class="row">
        <div class="col-lg-12">
            <div class="card">
                <div class="card-body">
                    <div class="edit-avatar">
                        <img src="{{asset('images/users/avatar.jpg')}}" alt="..." class="img-avatar">
                        <div class="avatar-divider"></div>
                        <div class="edit-avatar-content">
                            <h2 class="m-0">{{\App\Utils\Auth::userInfo('username')}}</h2>
                            <p class="m-0">{{\App\Utils\Auth::userInfo('name')}}</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="row">

        <div class="col-lg-12">
            <div class="card">
                <div class="card-header">
                    <h4>登录日志</h4>
                </div>
                <div class="card-body">
                    <div class="table-responsive">
                        <table class="table table-hover">
                            <thead>
                            <tr>
                                <th>#</th>
                                <th>登录时间</th>
                                <th>登录IP</th>
                                <th>客户端</th>
                                <th>备注</th>
                            </tr>
                            </thead>

                            <tbody>
                            @foreach($page as $item)
                                <tr>
                                    <td>{{$loop->iteration}}</td>
                                    <td>{{$item->updated_at}}</td>
                                    <td>{{$item->ip}}</td>
                                    <td>{{$item->client_text}}</td>
                                    <td>{{$item->desc}}</td>

                                </tr>
                            @endforeach
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection

